auth_enabled: false

server:
  http_listen_port: 3100
  grpc_listen_port: 9095
  grpc_server_max_recv_msg_size: 15728640
  grpc_server_max_send_msg_size: 15728640
  log_level: debug

ingester:
  lifecycler:
    num_tokens: 128
    join_after: 30s
    address: "{{ ansible_host }}"
    ring:
      kvstore:
        store: inmemory
      replication_factor: 1
    final_sleep: 0s
  chunk_idle_period: 5m
  chunk_retain_period: 30s
  chunk_encoding: gzip
  max_transfer_retries: 0
  max_chunk_age: 20m

schema_config:
  configs:
  - from: "{{ ansible_date_time.date }}"
    store: boltdb
    object_store: filesystem
    schema: v11
    index:
      prefix: index_
      period: 168h
    chunks:
      period: 168h
      prefix: chunk_

storage_config:
  boltdb:
    directory: /var/lib/loki/index
  filesystem:
    directory: /var/lib/loki/chunks

limits_config:
  ingestion_rate_strategy: local
  enforce_metric_name: false
  reject_old_samples: true
  reject_old_samples_max_age: 168h
  ingestion_rate_mb: 1024
  ingestion_burst_size_mb: 1024
  retention_period: 72h
  max_cache_freshness_per_query: 10m
  split_queries_by_interval: 15m
  per_stream_rate_limit: 512M
  per_stream_rate_limit_burst: 1024M
  cardinality_limit: 200000
  max_entries_limit_per_query: 100000
  max_label_value_length: 20480
  max_label_name_length: 10240
  max_label_names_per_series: 300

chunk_store_config:
  max_look_back_period: 168h

table_manager:
  retention_deletes_enabled: true
  retention_period: 168h

query_range:
  align_queries_with_step: true
  max_retries: 5
  cache_results: true
  results_cache:
    cache:
      enable_fifocache: true
      fifocache:
        max_size_bytes: 512MB
        validity: 168h
